//
//  VIPWrite.h
//  VIPCODE
//
//  Created by Taurin on 2019/9/11.
//  Copyright © 2019 VIPCODE-Student. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface VIPWrite : NSObject

+ (void)logSaveTime:(uint)time;

/**
 *  追加写入字符串到指定文件
 *
 *  @param log        待写入的日志
 */
+ (BOOL)writeLog:(NSString *)log;
+ (void)writeLogWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);

/**
 *  追加写入字符串到指定文件
 *
 *  @param log        待写入的日志
 *  @param filePath   文件路径
 */
+ (BOOL)writeLog:(NSString *)log filePath:(NSString *)filePath;
+ (void)writeLogWithFilePath:(NSString *)filePath logWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(2,3);

/**
 *  清空过期的日志
 */
+ (void)clearExpiredLog;

@end

NS_ASSUME_NONNULL_END
